package com.ktjy.mapper.user;

import com.ktjy.pojo.Crop;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CropMapper {
    List<Crop> selectCrop(@Param("cropName")String cropName, @Param("ripeningTime")int ripeningTime,
                                 @Param("pageBegin")int pageBegin, @Param("pageSize")int pageSize);
    int insert(Crop crop);
    int deleteCrop(@Param("cropId")int cropId);
    int updateCrop(Crop crop);

    List<Crop> selectAllCrop(@Param("cropId")int cropId);
    int count();
}
